﻿using KingsSharp.Core.Data;
using CRM.Admin.Contracts.Model.Sys;
using System;

namespace CRM.Admin.Contracts.Model.Logs
{
    /// <summary>
    /// 业务操作日志
    /// </summary>
    public class BusinessLog : EntityBase<Guid>
    {
        /// <summary>
        /// 业务模块类别
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 操作动作
        /// </summary>
        public string Action { get; set; }

        /// <summary>
        /// 操作内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 业务主键
        /// </summary>
        public string BusinessId { get; set; }

        /// <summary>
        /// Ip地址
        /// </summary>
        public string Ip { get; set; }

        /// <summary>
        /// 浏览器
        /// </summary>
        public string Brower { get; set; }

        /// <summary>
        /// 操作系统
        /// </summary>
        public string SystemName { get; set; }

        /// <summary>
        /// 对应用户外键
        /// </summary>
        public Guid UserId { get; set; }


        public UserInfo User { get; set; }
        
    }
}
